package com.lk.base.utils;

import java.util.HashMap;
import java.util.Map;

public class ResultUtil {

	public static Map<String,Object> Ok(String message){
		return resultMap("OK", message);
	}

	public static Map<String,Object> Error(String message){
		return resultMap("ERROR", message);
	}
	public static Map<String,Object> Datas(Object data){
		return resultMap(data);
	}

	public static Map<String,Object> resultMap(String status,String message){
		Map<String,Object> resultMap = new HashMap<>();
		resultMap.put("status", status);
		resultMap.put("message", message);
		return resultMap;
	}
	public static Map<String,Object> resultMap(Object data){
		Map<String,Object> resultMap = new HashMap<>();
		resultMap.put("data", data);
		return resultMap;
	}
}
